package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author shuiyun
 * @description 终端鉴权
 * @date 2022-04-19 22:40
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Message(JT808.终端鉴权0x0102)
public class T0102 extends JTMessage {

    @FieldValue(type = DataType.STRING, lengthSize = 1, desc = "鉴权码")
    private String token;

    @FieldValue(type = DataType.STRING, length = 15, desc = "终端IMEI")
    private String imei;

    @FieldValue(type = DataType.STRING, length = 20, desc = "软件版本号")
    private String version;
}
